package com.gemme.gemme.view;

import android.content.Context;
import android.util.AttributeSet;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.RelativeLayout;

import com.gemme.gemme.R;

public class FabuDanweiView extends RelativeLayout {
    private Context context;
    public FabuDanweiView(Context context) {
        this(context,null);
    }

    public FabuDanweiView(Context context, AttributeSet attrs) {
        this(context, attrs,0);
    }

    public FabuDanweiView(Context context, AttributeSet attrs, int defStyleAttr) {
        super(context, attrs, defStyleAttr);
        this.context = context;
        initView();
    }

    private void initView() {
        LayoutInflater.from(context).inflate(R.layout.fabu_danwei_view,this);
       TvEditText tv_name= findViewById(R.id.tv_name);
       TvEditText tv_shui_hao= findViewById(R.id.tv_shui_hao);
       TvEditText tv_khh= findViewById(R.id.tv_khh);
       TvEditText tv_yhzh= findViewById(R.id.tv_yhzh);
       TvEditText tv_qydz= findViewById(R.id.tv_qydz);
       TvEditText tv_qyytel= findViewById(R.id.tv_qyytel);

        tv_name.setLeftText("单位名称").setRightHintText("请填写单位名称");
        tv_shui_hao.setLeftText("税号").setRightHintText("请填写纳税人识别号");
        tv_khh.setLeftText("开户银行").setRightHintText("请填写开户银行");
        tv_yhzh.setLeftText("银行账号").setRightHintText("请填写银行账号");
        tv_qydz.setLeftText("企业地址").setRightHintText("请填写企业地址");
        tv_qyytel.setLeftText("企业电话").setRightHintText("请填写企业电话");
    }

}
